package com.example.module_marketers.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.module_marketers.R
import com.example.module_marketers.entity.ResidencyApplicationEntityItem

class MarketersAdapter:BaseQuickAdapter<ResidencyApplicationEntityItem,BaseViewHolder>(R.layout.layout_marketers_sp_item) {

    override fun convert(holder: BaseViewHolder, item: ResidencyApplicationEntityItem) {
        if (item.status=="新建" || item.status=="待审核"){
            holder.setText(R.id.tv_marketers_sp_status,"未确认")
        }else if (item.status=="已审核" || item.status=="驳回"){
            holder.setText(R.id.tv_marketers_sp_status,"已确认")
        }
        holder.setText(R.id.tv_marketers_sp_id,"申请编号:${item.applicationNumber}")
        holder.setText(R.id.tv_marketers_sp_time,"申请时间:${item.processingSteps[0].stepTime}")
    }
}